<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>孕育宝典 - 健康记录</title>
        <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
        <style>
            body {
                font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
                background-color: #f5f5f5;
                color: #333333;
                margin: 0;
                padding: 0;
            }
            .device-container {
                width: 390px;
                height: 844px;
                overflow: hidden;
                position: relative;
                background-color: #f5f5f5;
            }
            .status-bar {
                height: 44px;
                background-color: #ffffff;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 20px;
                font-size: 14px;
                font-weight: 600;
            }
            .header {
                background-color: #ffffff;
                padding: 10px 16px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 1px solid #f0f0f0;
            }
            .nav-bar {
                height: 60px;
                background-color: #ffffff;
                position: absolute;
                bottom: 0;
                width: 100%;
                display: flex;
                justify-content: space-around;
                align-items: center;
                border-top: 1px solid #f0f0f0;
            }
            .nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                color: #666666;
                font-size: 10px;
            }
            .nav-item.active {
                color: #ff9fb5;
            }
            .main-content {
                height: calc(844px - 44px - 60px - 56px);
                overflow-y: auto;
                padding-bottom: 20px;
            }
            .tab-container {
                background-color: #ffffff;
                padding: 12px 16px 0;
                border-bottom: 1px solid #f0f0f0;
            }
            .tabs {
                display: flex;
                gap: 20px;
            }
            .tab {
                padding-bottom: 10px;
                font-size: 15px;
                color: #666;
                position: relative;
            }
            .tab.active {
                color: #ff9fb5;
                font-weight: 500;
            }
            .tab.active:after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 2px;
                background-color: #ff9fb5;
                border-radius: 2px;
            }
            .record-card {
                background-color: #ffffff;
                border-radius: 12px;
                margin: 12px 16px;
                padding: 16px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }
            .record-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 12px;
            }
            .record-title {
                font-size: 16px;
                font-weight: 500;
                color: #333;
                display: flex;
                align-items: center;
            }
            .record-title i {
                margin-right: 8px;
                color: #ff9fb5;
            }
            .record-actions {
                display: flex;
                gap: 6px;
            }
            .record-action {
                width: 28px;
                height: 28px;
                border-radius: 14px;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #666;
                background-color: #f5f5f5;
            }
            .record-item {
                display: flex;
                justify-content: space-between;
                padding: 10px 0;
                border-bottom: 1px solid #f0f0f0;
            }
            .record-item:last-child {
                border-bottom: none;
            }
            .record-label {
                color: #666;
                font-size: 14px;
            }
            .record-value {
                font-size: 14px;
                color: #333;
                font-weight: 500;
            }
            .chart-container {
                height: 200px;
                position: relative;
                margin-top: 12px;
            }
            .chart-legend {
                display: flex;
                justify-content: center;
                gap: 16px;
                margin-top: 8px;
                font-size: 12px;
                color: #666;
            }
            .legend-item {
                display: flex;
                align-items: center;
            }
            .legend-color {
                width: 10px;
                height: 10px;
                border-radius: 5px;
                margin-right: 4px;
            }
            .add-record-button {
                position: fixed;
                bottom: 76px;
                right: 20px;
                width: 50px;
                height: 50px;
                border-radius: 25px;
                background-color: #ff9fb5;
                color: white;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 2px 10px rgba(255, 159, 181, 0.3);
                z-index: 10;
            }
            .no-records {
                text-align: center;
                color: #999;
                margin-top: 100px;
                font-size: 14px;
            }
            .summary-card {
                background-color: #ffffff;
                border-radius: 12px;
                margin: 12px 16px;
                padding: 16px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }
            .summary-title {
                font-size: 15px;
                font-weight: 500;
                color: #333;
                margin-bottom: 12px;
            }
            .summary-stats {
                display: flex;
                gap: 10px;
            }
            .stat-box {
                flex: 1;
                background-color: #f8f8f8;
                border-radius: 8px;
                padding: 12px;
                text-align: center;
            }
            .stat-value {
                font-size: 18px;
                font-weight: 600;
                color: #333;
                margin-bottom: 4px;
            }
            .stat-label {
                font-size: 12px;
                color: #666;
            }
            .chart-placeholder {
                width: 100%;
                height: 100%;
                background-color: #f8f8f8;
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #999;
                font-size: 14px;
            }
            .quick-add {
                display: flex;
                gap: 10px;
                padding: 0 16px;
                margin-top: 12px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .quick-add::-webkit-scrollbar {
                display: none;
            }
            .quick-add-btn {
                flex: 0 0 auto;
                background-color: #fff;
                border-radius: 20px;
                padding: 8px 16px;
                display: flex;
                align-items: center;
                gap: 6px;
                font-size: 14px;
                color: #333;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            }
            .quick-add-btn i {
                color: #ff9fb5;
            }
            .metric-item {
                background-color: #ffffff;
                margin: 0 16px 10px;
                border-radius: 12px;
                padding: 16px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }
            .metric-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 12px;
            }
            .metric-title {
                font-size: 15px;
                font-weight: 500;
                color: #333;
                display: flex;
                align-items: center;
                gap: 8px;
            }
            .metric-icon {
                width: 24px;
                height: 24px;
                border-radius: 12px;
                background-color: #f5e6ea;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #ff9fb5;
            }
            .metric-data {
                display: flex;
                align-items: center;
            }
            .metric-value {
                font-size: 16px;
                font-weight: 600;
                color: #333;
            }
            .metric-unit {
                margin-left: 4px;
                font-size: 13px;
                color: #999;
            }
            .metric-time {
                font-size: 11px;
                color: #999;
                display: block;
                margin-top: 4px;
            }
        </style>
    </head>
    <body>
        <div class="device-container">
            <!-- iOS状态栏 -->
            <div class="status-bar">
                <span>9:41</span>
                <div class="flex items-center">
                    <i class="fas fa-signal mr-1"></i>
                    <i class="fas fa-wifi mr-1"></i>
                    <i class="fas fa-battery-full"></i>
                </div>
            </div>

            <!-- 页面头部 -->
            <div class="header">
                <div class="flex items-center">
                    <i class="fas fa-arrow-left mr-4"></i>
                    <h1 class="text-lg font-medium">健康记录</h1>
                </div>
                <div class="flex gap-4">
                    <i class="fas fa-chart-line"></i>
                    <i class="fas fa-ellipsis-vertical"></i>
                </div>
            </div>

            <!-- 标签切换 -->
            <div class="tab-container">
                <div class="tabs">
                    <div class="tab active">概览</div>
                    <div class="tab">基础体温</div>
                    <div class="tab">体重</div>
                    <div class="tab">睡眠</div>
                    <div class="tab">更多</div>
                </div>
            </div>

            <!-- 主内容区 -->
            <div class="main-content">
                <!-- 快速添加 -->
                <div class="quick-add">
                    <div class="quick-add-btn">
                        <i class="fas fa-thermometer-half"></i>
                        <span>体温</span>
                    </div>
                    <div class="quick-add-btn">
                        <i class="fas fa-weight"></i>
                        <span>体重</span>
                    </div>
                    <div class="quick-add-btn">
                        <i class="fas fa-moon"></i>
                        <span>睡眠</span>
                    </div>
                    <div class="quick-add-btn">
                        <i class="fas fa-heart"></i>
                        <span>心率</span>
                    </div>
                    <div class="quick-add-btn">
                        <i class="fas fa-tint"></i>
                        <span>血压</span>
                    </div>
                    <div class="quick-add-btn">
                        <i class="fas fa-walking"></i>
                        <span>步数</span>
                    </div>
                </div>

                <!-- 健康状态概览 -->
                <div class="summary-card">
                    <div class="summary-title">今日健康状态</div>
                    <div class="summary-stats">
                        <div class="stat-box">
                            <div class="stat-value">36.5°C</div>
                            <div class="stat-label">基础体温</div>
                        </div>
                        <div class="stat-box">
                            <div class="stat-value">53.2kg</div>
                            <div class="stat-label">体重</div>
                        </div>
                        <div class="stat-box">
                            <div class="stat-value">7.5h</div>
                            <div class="stat-label">睡眠时长</div>
                        </div>
                    </div>
                </div>

                <!-- 基础体温记录 -->
                <div class="metric-item">
                    <div class="metric-header">
                        <div class="metric-title">
                            <div class="metric-icon">
                                <i class="fas fa-thermometer-half text-sm"></i>
                            </div>
                            <span>基础体温</span>
                        </div>
                        <div class="metric-data">
                            <span class="metric-value">36.5</span>
                            <span class="metric-unit">°C</span>
                            <i class="fas fa-chevron-right ml-2 text-gray-400"></i>
                        </div>
                    </div>
                    <div class="chart-container">
                        <div class="chart-placeholder">
                            <span>近30天体温趋势图</span>
                        </div>
                    </div>
                    <div class="chart-legend">
                        <div class="legend-item">
                            <div class="legend-color" style="background-color: #ff9fb5"></div>
                            <span>基础体温</span>
                        </div>
                        <div class="legend-item">
                            <div class="legend-color" style="background-color: #64b5f6"></div>
                            <span>经期</span>
                        </div>
                        <div class="legend-item">
                            <div class="legend-color" style="background-color: #ffb74d"></div>
                            <span>排卵期</span>
                        </div>
                    </div>
                </div>

                <!-- 体重记录 -->
                <div class="metric-item">
                    <div class="metric-header">
                        <div class="metric-title">
                            <div class="metric-icon">
                                <i class="fas fa-weight text-sm"></i>
                            </div>
                            <span>体重</span>
                        </div>
                        <div class="metric-data">
                            <span class="metric-value">53.2</span>
                            <span class="metric-unit">kg</span>
                            <i class="fas fa-chevron-right ml-2 text-gray-400"></i>
                        </div>
                    </div>
                    <div class="chart-container">
                        <div class="chart-placeholder">
                            <span>近30天体重趋势图</span>
                        </div>
                    </div>
                </div>

                <!-- 睡眠记录 -->
                <div class="metric-item">
                    <div class="metric-header">
                        <div class="metric-title">
                            <div class="metric-icon">
                                <i class="fas fa-moon text-sm"></i>
                            </div>
                            <span>睡眠</span>
                        </div>
                        <div class="metric-data">
                            <span class="metric-value">7.5</span>
                            <span class="metric-unit">小时</span>
                            <i class="fas fa-chevron-right ml-2 text-gray-400"></i>
                        </div>
                    </div>
                    <div class="chart-container">
                        <div class="chart-placeholder">
                            <span>近7天睡眠质量分析</span>
                        </div>
                    </div>
                </div>

                <!-- 心率记录 -->
                <div class="metric-item">
                    <div class="metric-header">
                        <div class="metric-title">
                            <div class="metric-icon">
                                <i class="fas fa-heart text-sm"></i>
                            </div>
                            <span>心率</span>
                        </div>
                        <div class="metric-data">
                            <span class="metric-value">72</span>
                            <span class="metric-unit">次/分</span>
                            <span class="metric-time">今天 08:45</span>
                            <i class="fas fa-chevron-right ml-2 text-gray-400"></i>
                        </div>
                    </div>
                </div>

                <!-- 血压记录 -->
                <div class="metric-item">
                    <div class="metric-header">
                        <div class="metric-title">
                            <div class="metric-icon">
                                <i class="fas fa-tint text-sm"></i>
                            </div>
                            <span>血压</span>
                        </div>
                        <div class="metric-data">
                            <span class="metric-value">115/72</span>
                            <span class="metric-unit">mmHg</span>
                            <span class="metric-time">今天 08:45</span>
                            <i class="fas fa-chevron-right ml-2 text-gray-400"></i>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 添加记录按钮 -->
            <div class="add-record-button">
                <i class="fas fa-plus"></i>
            </div>

            <!-- 底部导航栏 -->
            <div class="nav-bar">
                <div class="nav-item">
                    <i class="fas fa-home text-xl mb-1"></i>
                    <span>首页</span>
                </div>
                <div class="nav-item active">
                    <i class="fas fa-notes-medical text-xl mb-1"></i>
                    <span>记录</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-book-medical text-xl mb-1"></i>
                    <span>知识库</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-user-friends text-xl mb-1"></i>
                    <span>伴侣空间</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-user text-xl mb-1"></i>
                    <span>我的</span>
                </div>
            </div>
        </div>
    </body>
</html>
